<?php
/**
 * 示例用
 */
declare(strict_types=1);

namespace Apps\Http\Models;

use Libraries\Bases\ModelBase;

class Demo extends ModelBase
{
    protected $strTableName = 'user'; // 表名

    /**
     * 查询所有用户
     *
     * @return array
     * @throws \ErrorException
     */
    public function getUsers(): array
    {
        return $this->findAll('select * from ' . $this->strTableName);
    }
}
